ACPI: fix return value of XEN_PM_PDC platform op
authorJan Beulich <jbeulich@suse.com>
Wed, 28 Nov 2012 09:03:51 +0000 (10:03 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 28 Nov 2012 09:03:51 +0000 (10:03 +0100)
commit9a61ad67506e53c7df34feaf30585ebf01ef0c28
tree21afb470e38580b2c256c60e50f404320e273657
parent79ea67d7a7f8aee357232680ca114e0d773b8a5e
ACPI: fix return value of XEN_PM_PDC platform op

Should return -EFAULT when copying to guest memory fails.

Once touching this code, also switch to using the more relaxed copy
function (copying from the same guest memory already validated the
virtual address range).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/drivers/acpi/pmstat.c